package com.cershy.linyuminiserver;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.oas.annotations.EnableOpenApi;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@MapperScan("com.cershy.linyuminiserver.mapper")
@SpringBootApplication
@EnableOpenApi  // 添加这行
//@ComponentScan(basePackages = {"com.cershy.linyuminiserver.controller","com.cershy.linyuminiserver.configs"})
public class LinyuMiniServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(LinyuMiniServerApplication.class, args);
    }

}
